package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class Fold implements StringValueFunction {

    private int beginIndex;
    private int endIndex;
    private boolean upper;
    private boolean lower;
    private StringValueExpression characterValueExpression;

    public Fold(int beginIndex,
                int endIndex,
                boolean upper,
                boolean lower,
                StringValueExpression characterValueExpression) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.upper = upper;
        this.lower = lower;
        this.characterValueExpression = characterValueExpression;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public boolean isUpper() {
        return upper;
    }

    public boolean isLower() {
        return lower;
    }

    public StringValueExpression getCharacterValueExpression() {
        return characterValueExpression;
    }

}
